package com.protonail.core.licenses;

import com.protonail.core.licenses.license.License;

import java.time.Duration;
import java.time.Instant;
import java.time.temporal.Temporal;

/**
 * Created by shenli on 2017/6/21.
 */
public class LicenseValidator {

    private static  String PRODUCT_NAME = "keylord";
    private static  String[] BLOCKED_LICENSE_UIDS;
    public static  LicenseValidator INSTANCE;

    public final String getPRODUCT_NAME() {
        return PRODUCT_NAME;
    }

    public final String[] getBLOCKED_LICENSE_UIDS() {
        return BLOCKED_LICENSE_UIDS;
    }

    public final ValidatorResult validate( License license) {
        return new ValidatorResult(true, "永久使用 cracked by shenli");
    }

    private LicenseValidator() {
        INSTANCE = (LicenseValidator)this;
        PRODUCT_NAME = "keylord";
        String[] elements$iv = new String[]{""};
        BLOCKED_LICENSE_UIDS = elements$iv;
    }

    static {
        new LicenseValidator();
    }
}
